package com.lingyuan.oms.handler.extend;

import com.lingyuan.common.core.utils.StringUtils;
import com.lingyuan.oms.domain.param.CreateOrderParam;
import com.lingyuan.oms.handler.AbstractHandler;
import com.lingyuan.oms.handler.Handler;
import org.springframework.stereotype.Component;

/**
 * @ClassName：SkuIdsHandler
 * @Author: LeiHao
 * @Date: 2024/10/7 19:54
 * @Description: 校验sku编号
 */
@Component("skuIdsHandler")
public class SkuIdsHandler extends AbstractHandler {
    @Override
    public boolean handle(CreateOrderParam createOrderParam) {
        if (StringUtils.isBlank(createOrderParam.getSkuIds())) {
            return false;
        }
        return super.handle(createOrderParam);
    }
}
